﻿package com.toncen.samepms.basic.dao;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import com.toncen.samepms.basic.domain.DocumentRelation;
import com.toncen.samepms.common.AbstractDao;

/**
 * 描述：上传附件关系表表BASIC_DOCUMENT_RELATION的dao文件
 * 
 * @author tch
 */
public class DocumentRelationDao  extends AbstractDao<DocumentRelation> {

	public DocumentRelationDao() {
	}

	
	/*
	 * (non-Javadoc)
	 * 
	 * @see com.comit.common.db.BaseDao#initialize()
	 */
	@Override
	protected void initialize() {
		setStatementPrefix("DocumentRelation");
		setStatementDivision(".");
	}
	
	/**
	 * 
	 * TODO查出附件信息
	 * 
	 * capability:actionClassName,recodeId:domainId,fileType:文件类型
	 * 
	 * @author May 23, 2012 12:11:32 PM ZQ
	 * @param map
	 * @return
	 * @throws SQLException
	 * 
	 */
	public List<DocumentRelation> getByDomain(Map<String, Object> map) throws SQLException {
		return getSqlMap().queryForList(getStatement("getByDomain"), map);
	}
		
}
